package com.ykq.mapper;

import com.ykq.entity.Staff;
import com.ykq.vo.StaffVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ldh
* @description 针对表【staff】的数据库操作Mapper
* @createDate 2024-10-21 09:25:20
* @Entity com.ykq.entity.Staff
*/
public interface StaffMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Staff record);

    int insertSelective(Staff record);

    Staff selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Staff record);

    int updateByPrimaryKey(Staff record);

    Staff findByNameAndPwd(@Param("username") String username,@Param("password") String password);

    List<Staff> selectByCondition(StaffVo staffVo);

    Staff selectByStaffid(Integer staffid);

}
